package com.hailian.fintech.hlcomm_interfaceserver.result;

import lombok.Data;

@Data
public class ResultInfo {
    private String info;
    private Integer code;
    private Object result;

    public ResultInfo(String info, Integer code, Object result) {
        this.info = info;
        this.code = code;
        this.result = result;
    }

    public ResultInfo() {
    }
    public ResultInfo success(Object result){
        return new ResultInfo("success",1001,result);
    }
    public ResultInfo err(Object result){
        return new ResultInfo("err",1002,result);
    }

}
